<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<!--100到1000的水仙花数-->
		<script type="text/javascript">
			var a,b,c;
			/*a=parseInt(98/10);
			console.log(a);*/
			for(var i=100;i<1000;i++){
				a=i%10;
				b=parseInt(i/10)%10;/*十位也可以这样算：b=parseInt((i-a*100)/10)*/
				c=parseInt(i/100);
				if(a*a*a+b*b*b+c*c*c==i){
					console.log(i);
				}
				
			}
		</script>
	</head>
	<body>
	</body>
</html>
